@extends('layouts.art')

@section('content')
<a class="btn btn-primary" href="/blog/create">添加文章</a>
@foreach($art as $v)
 <div class="panel panel-default">
  <div class="panel-body">
    {{$v->title}}
    <a href="/blog/{{$v->id}}" class="btn btn-info">阅读</a>
    <a href="/blog/{{$v->id}}/edit" class="btn btn-info">修改</a>

      <form action="/blog/{{$v->id}}" method="post" style="display: inline-block;">
      {{csrf_field()}}
            <input type="hidden" name="_method" value="DELETE">
            <button type="submit" class="btn btn-danger">删除</button>
        </form>
    </div>
    </div>
@endforeach
{!!$art->render() !!}
  
@endsection